package com.grm.sys.mapper;

import com.grm.sys.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    List<SysUser> querySelective(@Param("offset") Long offset, @Param("pageSize") Integer pageSize, @Param("queryParam") SysUser queryParam);

    List<SysUser> querySelectiveV2(@Param("lastId") Long lastId, @Param("pageSize") Integer pageSize, @Param("queryParam") SysUser queryParam);

    Long queryTotal(@Param("queryParam") SysUser queryParam);

    void add(SysUser sysUser);

    void batchInsert(@Param("list") List<SysUser> list);

    List<SysUser> queryAll();
}
